package com.kandinfo.base.security.dto;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kandinfo.base.common.util.DateSerializer;

public class RoleDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private String roleName; // 1.绑定到表格的列上 2.绑定新增字段
    private String roleDesc;
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdTs;

    private Integer type;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @JsonSerialize(using = DateSerializer.class)
    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
